﻿<Page
    x:Class="tricogol.metro.ListaEquipos"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:tricogol.metro"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid  x:Name="RootPanel" Background="LightSlateGray" Opacity="0.75" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
        <Border Background="White" Margin="120">
            <Grid Background="White" Margin="8">
                <Grid.RowDefinitions>
                    <RowDefinition Height="auto"/>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="auto"/>
                </Grid.RowDefinitions>
                
                <TextBlock Opacity="1" Text="Elige tu Equipo Favorito para Continuar :"
                           FontSize="36" Margin="32" HorizontalAlignment="Center"
                           Grid.Row="0" Foreground="Black"/>
                
                <GridView x:Name="EquiposGridView" SelectionChanged="EquiposGridView_SelectionChanged_1" ItemsSource="{Binding equipos}"
                          SelectionMode="Single" VerticalAlignment="Center" Grid.Row="1" >
                    <GridView.ItemsPanel>
                        <ItemsPanelTemplate>
                            <StackPanel Orientation="Horizontal"/>
                        </ItemsPanelTemplate>
                    </GridView.ItemsPanel>
                    <GridView.ItemTemplate>
                        <DataTemplate>
                            <Grid Height="Auto" Width="Auto"  HorizontalAlignment="Left" VerticalAlignment="Top">
                                <Image Source="{Binding ImagenRuta}" Stretch="Uniform" Margin="33"/>
                                <TextBlock Text="{Binding Nombre}" HorizontalAlignment="Center" Margin="8"/>
                            </Grid>
                        </DataTemplate>
                    </GridView.ItemTemplate>
                </GridView>

                <Button VerticalAlignment="Center" HorizontalAlignment="Center" Padding="8" Margin="32"
                        Click="Button_Click_1"
                        Height="136" Width="136" Grid.Row="2" BorderBrush="#FF898080" Foreground="#FF726B6B" Background="#FF363636" >
                    <Viewbox xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
                        <Grid>
                            <Grid Name="backgroundGrid" Width="128" Height="128" Visibility="Collapsed" />
                            <Path Data="M34.4,57.260012L61.237001,57.260012 61.237001,61.041014 34.4,61.041014z M19.66,57.260012L28.353001,57.260012 28.353001,61.041014 19.66,61.041014z M0,49.700014L13.607,49.700014 13.607,61.040015 0,61.040015z M58.366865,0.001318883C59.747869,0.030781931 61.122957,0.55389105 62.205778,1.5758266 64.515921,3.7557126 64.6159,7.4055379 62.435766,9.7255576L30.604643,41.92483C28.494579,44.16477 25.014471,44.314917 22.694319,42.344984 22.4144,42.174822 22.154381,41.984885 21.904372,41.764921L8.0038372,29.62504C5.5937148,27.54525 5.3336955,23.90519 7.4138497,21.495329 9.4938824,19.085467 13.134031,18.825463 15.534143,20.915263L26.084457,30.135039 54.065466,1.7957924C55.228979,0.56860022,56.801722,-0.03207104,58.366865,0.001318883z" Stretch="Uniform" Fill="Black" Width="68" Height="68" Margin="0,0,0,0" RenderTransformOrigin="0.5,0.5">
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <TransformGroup.Children>
                                            <RotateTransform Angle="0" />
                                            <ScaleTransform ScaleX="1" ScaleY="1" />
                                        </TransformGroup.Children>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                        </Grid>
                    </Viewbox>
                </Button>

            </Grid>
        </Border>
    </Grid>
</Page>